package com.stockz.equity.charting.view.toolbar;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import javax.swing.JToolBar;

import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

import com.stockz.equity.charting.view.StockChartViewControlPanel;
import com.stockz.equity.pattern.Child;
import com.stockz.equity.pattern.Parent;

@Component
public class IndicatorToolBar extends JToolBar implements Parent,Child,Ordered {
	private static final long serialVersionUID = -8794794764779660084L;
	
	@SuppressWarnings("unchecked")
	private List<Class> parentList = new ArrayList<Class>();
	
	public IndicatorToolBar(){
		super("Indicator");
		parentList.add(StockChartViewControlPanel.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	public Collection<Class> getParents() {
		return parentList;
	}

	@Override
	public int getOrder() {
		return 3;
	}

}
